<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>misc/syntax/fortran.syntax</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.5.7' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<!-- beginning of fixed guide -->
<div id='guide'><ul>
<li><a href='#TOP'><img class='icon' src='../icons/first.png' alt='[^]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/last.png' alt='[v]' /></a></li>
<li><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a></li>
<li><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a></li>
<li><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a></li>
<li class='standout'><span><a href='../files/misc.html'>misc</a>/<a href='../files/misc--syntax.html'>syntax</a>/fortran.syntax</span></li>
</ul></div>
<!-- end of fixed guide -->
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/misc.html'>misc</a>/<a href='../files/misc--syntax.html'>syntax</a>/fortran.syntax</h2>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><img class='icon' src='../icons/n_top.png' alt='[top]' /><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+1 misc/syntax/fortran.syntax'  /> */</em>
<hr />
<pre>
<a id='L1' name='L1'></a># ---------------------------------------------------
<a id='L2' name='L2'></a># fortran.syntax
<a id='L3' name='L3'></a># FORTRAN language syntax highlighting template.
<a id='L4' name='L4'></a># Provides syntax highlighting rules for the
<a id='L5' name='L5'></a># FORTRAN programming language.
<a id='L6' name='L6'></a>#
<a id='L7' name='L7'></a># Author: John Theal
<a id='L8' name='L8'></a># Email: jtheal@renegadelinuxbox.dhs.org
<a id='L9' name='L9'></a># December 7, 1999
<a id='L10' name='L10'></a># ---------------------------------------------------
<a id='L11' name='L11'></a> 
<a id='L12' name='L12'></a># Heavily modified by Paul Sheer &lt;psheer@obsidian.co.za&gt;.
<a id='L13' name='L13'></a> 
<a id='L14' name='L14'></a>caseinsensitive
<a id='L15' name='L15'></a> 
<a id='L16' name='L16'></a>context default
<a id='L17' name='L17'></a># keywords at the beginning of line
<a id='L18' name='L18'></a>    keyword linestart ! black yellow
<a id='L19' name='L19'></a>    keyword linestart \* black yellow
<a id='L20' name='L20'></a>    keyword linestart c black yellow
<a id='L21' name='L21'></a>    keyword linestart C black yellow
<a id='L22' name='L22'></a> 
<a id='L23' name='L23'></a>    keyword linestart \s\s\s\s\s\* yellow red
<a id='L24' name='L24'></a>    keyword linestart \s\s\s\s\s\+ yellow red
<a id='L25' name='L25'></a> 
<a id='L26' name='L26'></a>    keyword linestart \s\s\s\s\s\s black brightcyan/blue3
<a id='L27' name='L27'></a> 
<a id='L28' name='L28'></a>    keyword linestart 0\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan
<a id='L29' name='L29'></a>    keyword linestart 1\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan
<a id='L30' name='L30'></a>    keyword linestart 2\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan
<a id='L31' name='L31'></a>    keyword linestart 3\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan
<a id='L32' name='L32'></a>    keyword linestart 4\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan
<a id='L33' name='L33'></a>    keyword linestart 5\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan
<a id='L34' name='L34'></a>    keyword linestart 6\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan
<a id='L35' name='L35'></a>    keyword linestart 7\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan
<a id='L36' name='L36'></a>    keyword linestart 8\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan
<a id='L37' name='L37'></a>    keyword linestart 9\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan
<a id='L38' name='L38'></a> 
<a id='L39' name='L39'></a>    keyword linestart \s\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan
<a id='L40' name='L40'></a>    keyword linestart               \s\s\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan
<a id='L41' name='L41'></a>    keyword linestart                             \s\s\s\{0123456789\s\}\{0123456789\s\}\s white brightcyan
<a id='L42' name='L42'></a>    keyword linestart                                           \s\s\s\s\{0123456789\s\}\s white brightcyan
<a id='L43' name='L43'></a> 
<a id='L44' name='L44'></a># boolean and logical expressions / operators
<a id='L45' name='L45'></a>    keyword .and. brightred/orange
<a id='L46' name='L46'></a>    keyword .eq. brightred/orange
<a id='L47' name='L47'></a>    keyword .eqv. brightred/orange
<a id='L48' name='L48'></a>    keyword .false. brightred/orange
<a id='L49' name='L49'></a>    keyword .ge. brightred/orange
<a id='L50' name='L50'></a>    keyword .gt. brightred/orange
<a id='L51' name='L51'></a>    keyword .le. brightred/orange
<a id='L52' name='L52'></a>    keyword .lt. brightred/orange
<a id='L53' name='L53'></a>    keyword .ne. brightred/orange
<a id='L54' name='L54'></a>    keyword .neqv. brightred/orange
<a id='L55' name='L55'></a>    keyword .not. brightred/orange
<a id='L56' name='L56'></a>    keyword .or. brightred/orange
<a id='L57' name='L57'></a>    keyword .true. brightred/orange
<a id='L58' name='L58'></a>    keyword whole lge brightred/orange
<a id='L59' name='L59'></a>    keyword whole lgt brightred/orange
<a id='L60' name='L60'></a>    keyword whole lle brightred/orange
<a id='L61' name='L61'></a>    keyword whole llt brightred/orange
<a id='L62' name='L62'></a> 
<a id='L63' name='L63'></a># declarations
<a id='L64' name='L64'></a>    keyword whole block brightcyan
<a id='L65' name='L65'></a>    keyword whole character brightcyan
<a id='L66' name='L66'></a>    keyword whole common brightcyan
<a id='L67' name='L67'></a>    keyword whole complex brightcyan
<a id='L68' name='L68'></a>    keyword whole data brightcyan
<a id='L69' name='L69'></a>    keyword whole dimension brightcyan
<a id='L70' name='L70'></a>    keyword whole double brightcyan
<a id='L71' name='L71'></a>    keyword whole external brightcyan
<a id='L72' name='L72'></a>    keyword whole format brightcyan
<a id='L73' name='L73'></a>    keyword whole implicit brightcyan
<a id='L74' name='L74'></a>    keyword whole integer brightcyan
<a id='L75' name='L75'></a>    keyword whole intrinsic brightcyan
<a id='L76' name='L76'></a>    keyword whole logical brightcyan
<a id='L77' name='L77'></a>    keyword whole none brightcyan
<a id='L78' name='L78'></a>    keyword whole parameter brightcyan
<a id='L79' name='L79'></a>    keyword whole precision brightcyan
<a id='L80' name='L80'></a>    keyword whole real brightcyan
<a id='L81' name='L81'></a> 
<a id='L82' name='L82'></a># general programming syntax
<a id='L83' name='L83'></a>    keyword whole assign brightgreen
<a id='L84' name='L84'></a>    keyword whole call brightgreen
<a id='L85' name='L85'></a>    keyword whole continue brightgreen
<a id='L86' name='L86'></a>    keyword whole do brightgreen
<a id='L87' name='L87'></a>    keyword whole else brightgreen
<a id='L88' name='L88'></a>    keyword whole elseif brightgreen
<a id='L89' name='L89'></a>    keyword whole end brightgreen
<a id='L90' name='L90'></a>    keyword whole enddo brightgreen
<a id='L91' name='L91'></a>    keyword whole endif brightgreen
<a id='L92' name='L92'></a>    keyword whole for brightgreen
<a id='L93' name='L93'></a>    keyword whole goto brightgreen
<a id='L94' name='L94'></a>    keyword whole if brightgreen
<a id='L95' name='L95'></a>    keyword whole pause brightgreen
<a id='L96' name='L96'></a>    keyword whole return brightgreen
<a id='L97' name='L97'></a>    keyword whole stop brightgreen
<a id='L98' name='L98'></a>    keyword whole then brightgreen
<a id='L99' name='L99'></a>    keyword whole to brightgreen
<a id='L100' name='L100'></a>    keyword whole while brightgreen
<a id='L101' name='L101'></a> 
<a id='L102' name='L102'></a># headers
<a id='L103' name='L103'></a>    keyword whole entry brightgreen
<a id='L104' name='L104'></a>    keyword whole function yellow
<a id='L105' name='L105'></a>    keyword whole program yellow
<a id='L106' name='L106'></a>    keyword whole subroutine yellow
<a id='L107' name='L107'></a> 
<a id='L108' name='L108'></a># I/O functions
<a id='L109' name='L109'></a># may have optional equal signs after them: 'keyword ='
<a id='L110' name='L110'></a>    keyword whole access brightmagenta
<a id='L111' name='L111'></a>    keyword whole backspace brightmagenta
<a id='L112' name='L112'></a>    keyword whole blank brightmagenta
<a id='L113' name='L113'></a>    keyword whole close brightmagenta
<a id='L114' name='L114'></a>    keyword whole direct brightmagenta
<a id='L115' name='L115'></a>    keyword whole endfile brightmagenta
<a id='L116' name='L116'></a>    keyword whole err brightmagenta
<a id='L117' name='L117'></a>    keyword whole exist brightmagenta
<a id='L118' name='L118'></a>    keyword whole file brightmagenta
<a id='L119' name='L119'></a>    keyword whole fmt brightmagenta
<a id='L120' name='L120'></a>    keyword whole form brightmagenta
<a id='L121' name='L121'></a>    keyword whole formatted brightmagenta
<a id='L122' name='L122'></a>    keyword whole inquire brightmagenta
<a id='L123' name='L123'></a>    keyword whole iostat brightmagenta
<a id='L124' name='L124'></a>    keyword whole name brightmagenta
<a id='L125' name='L125'></a>    keyword whole named brightmagenta
<a id='L126' name='L126'></a>    keyword whole nextrec brightmagenta
<a id='L127' name='L127'></a>    keyword whole number brightmagenta
<a id='L128' name='L128'></a>    keyword whole open brightmagenta
<a id='L129' name='L129'></a>    keyword whole opened brightmagenta
<a id='L130' name='L130'></a>    keyword whole print brightmagenta
<a id='L131' name='L131'></a>    keyword whole read brightmagenta
<a id='L132' name='L132'></a>    keyword whole rec brightmagenta
<a id='L133' name='L133'></a>    keyword whole recl brightmagenta
<a id='L134' name='L134'></a>    keyword whole rewind brightmagenta
<a id='L135' name='L135'></a>    keyword whole sequential brightmagenta
<a id='L136' name='L136'></a>    keyword whole status brightmagenta
<a id='L137' name='L137'></a>    keyword whole unformatted brightmagenta
<a id='L138' name='L138'></a>    keyword whole unit brightmagenta
<a id='L139' name='L139'></a>    keyword whole write brightmagenta
<a id='L140' name='L140'></a> 
<a id='L141' name='L141'></a># mathematical functions
<a id='L142' name='L142'></a>    keyword whole abs yellow
<a id='L143' name='L143'></a>    keyword whole acos yellow
<a id='L144' name='L144'></a>    keyword whole aimag yellow
<a id='L145' name='L145'></a>    keyword whole aint yellow
<a id='L146' name='L146'></a>    keyword whole alog yellow
<a id='L147' name='L147'></a>    keyword whole alog10 yellow
<a id='L148' name='L148'></a>    keyword whole amax0 yellow
<a id='L149' name='L149'></a>    keyword whole amax1 yellow
<a id='L150' name='L150'></a>    keyword whole amin0 yellow
<a id='L151' name='L151'></a>    keyword whole amin1 yellow
<a id='L152' name='L152'></a>    keyword whole amod yellow
<a id='L153' name='L153'></a>    keyword whole anint yellow
<a id='L154' name='L154'></a>    keyword whole aprime yellow
<a id='L155' name='L155'></a>    keyword whole asin yellow
<a id='L156' name='L156'></a>    keyword whole atan yellow
<a id='L157' name='L157'></a>    keyword whole atan2 yellow
<a id='L158' name='L158'></a>    keyword whole acos yellow
<a id='L159' name='L159'></a>    keyword whole cabs yellow
<a id='L160' name='L160'></a>    keyword whole cexp yellow
<a id='L161' name='L161'></a>    keyword whole char yellow
<a id='L162' name='L162'></a>    keyword whole clog yellow
<a id='L163' name='L163'></a>    keyword whole cmplx yellow
<a id='L164' name='L164'></a>    keyword whole conjg yellow
<a id='L165' name='L165'></a>    keyword whole cos yellow
<a id='L166' name='L166'></a>    keyword whole cosh yellow
<a id='L167' name='L167'></a>    keyword whole ccos yellow
<a id='L168' name='L168'></a>    keyword whole csin yellow
<a id='L169' name='L169'></a>    keyword whole csqrt yellow
<a id='L170' name='L170'></a>    keyword whole dabs yellow
<a id='L171' name='L171'></a>    keyword whole dacos yellow
<a id='L172' name='L172'></a>    keyword whole dasin yellow
<a id='L173' name='L173'></a>    keyword whole datan yellow
<a id='L174' name='L174'></a>    keyword whole datan2 yellow
<a id='L175' name='L175'></a>    keyword whole dble yellow
<a id='L176' name='L176'></a>    keyword whole dcos yellow
<a id='L177' name='L177'></a>    keyword whole dcosh yellow
<a id='L178' name='L178'></a>    keyword whole dfloat yellow
<a id='L179' name='L179'></a>    keyword whole ddmim yellow
<a id='L180' name='L180'></a>    keyword whole dexp yellow
<a id='L181' name='L181'></a>    keyword whole dim yellow
<a id='L182' name='L182'></a>    keyword whole dint yellow
<a id='L183' name='L183'></a>    keyword whole dlog yellow
<a id='L184' name='L184'></a>    keyword whole dlog10 yellow
<a id='L185' name='L185'></a>    keyword whole dmax1 yellow
<a id='L186' name='L186'></a>    keyword whole dmin1 yellow
<a id='L187' name='L187'></a>    keyword whole dmod yellow
<a id='L188' name='L188'></a>    keyword whole dnint yellow
<a id='L189' name='L189'></a>    keyword whole dsign yellow
<a id='L190' name='L190'></a>    keyword whole dsin yellow
<a id='L191' name='L191'></a>    keyword whole dsinh yellow
<a id='L192' name='L192'></a>    keyword whole dsqrt yellow
<a id='L193' name='L193'></a>    keyword whole dtan yellow
<a id='L194' name='L194'></a>    keyword whole dtanh yellow
<a id='L195' name='L195'></a>    keyword whole equivalence yellow
<a id='L196' name='L196'></a>    keyword whole exp yellow
<a id='L197' name='L197'></a>    keyword whole float yellow
<a id='L198' name='L198'></a>    keyword whole iabs yellow
<a id='L199' name='L199'></a>    keyword whole ichar yellow
<a id='L200' name='L200'></a>    keyword whole idim yellow
<a id='L201' name='L201'></a>    keyword whole idint yellow
<a id='L202' name='L202'></a>    keyword whole ifix yellow
<a id='L203' name='L203'></a>    keyword whole index yellow
<a id='L204' name='L204'></a>    keyword whole int yellow
<a id='L205' name='L205'></a>    keyword whole isign yellow
<a id='L206' name='L206'></a>    keyword whole len yellow
<a id='L207' name='L207'></a>    keyword whole log yellow
<a id='L208' name='L208'></a>    keyword whole log10 yellow
<a id='L209' name='L209'></a>    keyword whole max yellow
<a id='L210' name='L210'></a>    keyword whole max0 yellow
<a id='L211' name='L211'></a>    keyword whole max1 yellow
<a id='L212' name='L212'></a>    keyword whole min yellow
<a id='L213' name='L213'></a>    keyword whole min0 yellow
<a id='L214' name='L214'></a>    keyword whole min1 yellow
<a id='L215' name='L215'></a>    keyword whole mod yellow
<a id='L216' name='L216'></a>    keyword whole rand yellow
<a id='L217' name='L217'></a>    keyword whole sign yellow
<a id='L218' name='L218'></a>    keyword whole sin yellow
<a id='L219' name='L219'></a>    keyword whole sinh yellow
<a id='L220' name='L220'></a>    keyword whole sngl yellow
<a id='L221' name='L221'></a>    keyword whole sqrt yellow
<a id='L222' name='L222'></a>    keyword whole tan yellow
<a id='L223' name='L223'></a>    keyword whole tanh yellow
<a id='L224' name='L224'></a> 
<a id='L225' name='L225'></a># operators and syntax elements
<a id='L226' name='L226'></a>    keyword ( brightcyan
<a id='L227' name='L227'></a>    keyword ) brightcyan
<a id='L228' name='L228'></a>    keyword , brightcyan
<a id='L229' name='L229'></a>    keyword \+ yellow
<a id='L230' name='L230'></a>    keyword - yellow
<a id='L231' name='L231'></a>    keyword \* yellow
<a id='L232' name='L232'></a>    keyword / yellow
<a id='L233' name='L233'></a>    keyword = yellow
<a id='L234' name='L234'></a> 
<a id='L235' name='L235'></a># comments and quotes
<a id='L236' name='L236'></a>    keyword '*' green
<a id='L237' name='L237'></a> 
<a id='L238' name='L238'></a>context exclusive linestart ! \n brown
<a id='L239' name='L239'></a>   spellcheck
<a id='L240' name='L240'></a>context exclusive linestart \* \n brown
<a id='L241' name='L241'></a>   spellcheck
<a id='L242' name='L242'></a>context exclusive linestart c \n brown
<a id='L243' name='L243'></a>   spellcheck
<a id='L244' name='L244'></a>context exclusive linestart C \n brown
<a id='L245' name='L245'></a>   spellcheck
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><img class='icon' src='../icons/n_first.png' alt='[first]' /><img class='icon' src='../icons/n_last.png' alt='[last]' /><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><img class='icon' src='../icons/n_bottom.png' alt='[bottom]' /><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+245 misc/syntax/fortran.syntax'  /> */</em>
</body>
</html>
